﻿/**
* ibio-develop
* Tue Jan 29 16:30:54 2008
* 异步过程的处理
*/

import utils.Delegate;
class utils.ASyncProcessor{
	var m_resultLv;
	var m_delegateAfterLoad;
	
	function ASyncProcessor(delegateAfterLoad){
		m_resultLv = new LoadVars();
		m_resultLv.onData = Delegate.create(this, onVarsLoad);
		m_delegateAfterLoad = delegateAfterLoad;
	}
	
	function onVarsLoad(str){
		//把str加到delegate的函数里面去
		m_delegateAfterLoad(str);
	}

	function load(url){
		m_resultLv.load(url);
	}
}